package com.gk.javaservice.dao;

import com.gk.javaservice.po.AdminUsers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminUsersDao extends BaseDao<AdminUsers> {
    AdminUsers findByName(String name);
    List<AdminUsers> searchByDep(String id);
    int countUserByName(String name);
    AdminUsers login(AdminUsers u);
    AdminUsers autoLogin(AdminUsers u);
    List<AdminUsers> hasAllToPage(@Param("offset") int offset, @Param("limit") int limit, @Param("searchMsg") String searchMsg);
    int queryTotal(String searchMsg);
}
